using NotImplementedException = System.NotImplementedException;

namespace TodoPro.System.Command
{
    public class ResetTodoCommand : ITodoCommand
    {
        public ResetTodoCommand(string todoId)
        {
            TodoId = todoId;
        }

        public string TodoId { get; set; }


        public void Execute()
        {
            var todo = TodoProConfig.GetModel<ITodoModel>().GetAll().Find(t => t.Id == TodoId);

            todo.Finished = false;
        }
    }
}